// 防抖函数
let debounce = function (fn) {
    let timer = null
    return function () {
        clearTimeout(timer)
        timer = setTimeout(function () {
            fn()//业务
        }, 2000)
    }
}
export default debounce